package com.kunya.product.dao.product;

import com.kunya.product.po.ProductAttribute;
import org.apache.ibatis.annotations.Param;

public interface ProductAttributeMapper {
    int deleteByPrimaryKey(@Param("attributeId") Long attributeId,@Param("table_prefix") String table_prefix);

    int insert(@Param("record") ProductAttribute record,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("record" )ProductAttribute record,@Param("table_prefix") String table_prefix);

    ProductAttribute selectByPrimaryKey(@Param("attributeId") Long attributeId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("record") ProductAttribute record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record") ProductAttribute record,@Param("table_prefix") String table_prefix);

    ProductAttribute selectByProductId(@Param("productId") Long productId,@Param("table_prefix") String table_prefix);

    int deleteProductAttributeByProductId(@Param("productId") Long productId,@Param("table_prefix") String table_prefix);
}